<?php
/**
 * SMARTY plugin for LiWeb CMS used for easy displaing of templates using View
 * module.
 *
 * @author Martin "DevelX" Jurča
 * @version 2009-02-17
 */
function smarty_function_displaytemplate($params, &$smarty) {
    if (!isset($params['param'])) {
        $params['param'] = null;
    }
    Modules::getModule('View')->displayTemplate($params['module'],
            $params['template'], $params['param'], false);
}
?>
